empty.graph(LETTERS[1:8])
#
# Random/Generated Bayesian network
#
# model:
# [A][B][C][D][E][F][G][H]
# nodes: 8
# arcs: 0
# undirected arcs: 0
# directed arcs: 0
# average markov blanket size: 0.00
# average neighbourhood size: 0.00
# average branching factor: 0.00
#
# generation algorithm: Empty
#
random.graph(LETTERS[1:8])
# <insert the description of a random graph here>
plot(random.graph(LETTERS[1:8], method = "ic-dag", max.in.degree = 2))
plot(random.graph(LETTERS[1:8]))
plot(random.graph(LETTERS[1:8], prob = 0.2))
Run the code above in your browser using DataLab